<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        a {
            pointer-events: none;
        }

        a:hover {
            color: red;
        }
    </style>
</head>

<body>

    <a href="">qqq</a>

    <script>

        var oA = document.querySelector('a');
        console.log(oA);

        oA.onclick = function () {
            console.log(888);
        }

    </script>

</body>

</html>